package day10;

class B extends A {
	protected void f() {
	}

	// Cannot reduce the visibility of the inherited method from A
void  k(){
		System.out.print("I  am  subclass");
	}

public  static  void  main(String[]  args)  {
		A  a=new  B();
		a.f();
       a.k();
	}
}
